import Vue from 'vue'
const getters = {
  device: state => state.theme.device,
  theme: state => state.theme.theme,
  color: state => state.theme.color,
  token: state => state.user.token,
  avatar: state => {state.user.avatar = Vue.local.get("USER_INFO"); return state.user.avatar},
  username: state => {state.user.username = Vue.local.get("USER_NAME"); return state.user.username},
  welcome: state => state.user.welcome,
  permissionList: state => state.user.permissionList,
  userInfo: state => {state.user.info = Vue.local.get("USER_INFO"); return state.user.info},
}



export default getters
